package com.authine.cloudpivot.ext.listener;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zhutj
 * create_date  2020-08-14 09:15
 * description  已部署应用的安装信息，联表查询结果
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("已部署应用安装信息")
public class AppDeploymentDto implements Serializable {
    private static final long serialVersionUID = 1818436583752443893L;

    @ApiModelProperty("消息ID")
    private String msgId;

    @ApiModelProperty("表示消息的操作：1=add,2=update,3=delete")
    private int operation;

    @ApiModelProperty("部署id")
    private String id;

    @ApiModelProperty("appId")
    private String appId;

    @ApiModelProperty("appCode")
    private String appCode;

    @ApiModelProperty("app名称")
    private String appName;

    @ApiModelProperty("version")
    private String version;

    @ApiModelProperty("进程id,安装成功会有进程id")
    private Integer pid;

    @ApiModelProperty("状态 running stop  error")
    private String status;

    @ApiModelProperty("备注")
    private String remarks;

    @ApiModelProperty("启动脚本")
    private String startScript;

    @ApiModelProperty("停止脚本")
    private String stopScript;

    @ApiModelProperty("命名空间")
    private String namespace;

    @ApiModelProperty("环境id")
    private String envId;

    @ApiModelProperty("访问url")
    private String appUrl;

    @ApiModelProperty("应用图标url")
    private String appIconUrl;

    private Date createdAt;

    private Date updatedAt;
}
